package com.dupf.upms.rpc.api;

import com.dupf.common.base.BaseService;
import com.dupf.upms.dao.model.UpmsUserOrganization;
import com.dupf.upms.dao.model.UpmsUserOrganizationExample;

import java.util.List;

/**
* UpmsUserOrganizationService接口
* Created by dupf on 2018/3/1.
*/
public interface UpmsUserOrganizationService extends BaseService<UpmsUserOrganization, UpmsUserOrganizationExample> {

    /**
     * 用户组织
     * @param organizationIds 组织ids
     * @param id 用户id
     * @return
     */
    int organization(String[] organizationIds, int id);

    /**
     * 根据组织获取用户列表
     * @param id
     * @return
     */
    List<Integer> getUserIdsByOrgId(int id);

}